//
//  myTableViewCell.m
//  qianke
//
//  Created by ZX on 2017/6/27.
//  Copyright © 2017年 ZX. All rights reserved.
//

#import "myTableViewCell.h"
@implementation myTableViewCell

- (void)awakeFromNib {
    self.height -= 3;
    [super awakeFromNib];
    // Initialization code
}

- (void)setFrame:(CGRect)frame
{
    frame.size.height -= 3;
    [super setFrame:frame];
}
-(void)setStatus:(ZXCustomerModel *)status{
    self.noticeId = status.noticeId;
    _nameLabel.text = status.guestName;
    _sex = status.sex;
    _phoneLabel.text = status.handPhone;
    _addressLabel.text = status.address;
    _guestOrderId = status.guestOrderId;//0未转  1已转订单
    self.itTurnLabel.text = status.guestOrderStatus;
    _ideaModelCode = status.ideaModelCode;
    _equipLevelCode = status.equipLevelCode;
    _address = status.address;
    _carModelLabel.text = status.ideaModelName;
    self.chanceId = status.chanceId;
    _sexLabel.text = _sex;
    self.activityCount = [NSString stringWithFormat:@"目前有%@",status.cuNum];
    self.activityNumlabel.text = [NSString stringWithFormat:@"%@",status.cuNum];
//    if (self.activityCount.intValue) {
        self.chakanLabel.text =@"次跟进，前去查看";
//    }else{
//        self.chakanLabel.text =@"个销售活动,前去添加";
//    }
    self.province = status.province;
    _city = status.city;
    _area = status.area;
    _intentionDetail = status.intentionDetail;
    self.ideaColorName = status.ideaColorName;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
